<!-- 404 -->
<template>
<div class="page">
  <div class="tip">404 Not Found !</div>
  <div class="tip">ERROR PAGE</div>
  <div class="tip">页面找不到啦~建议您</div>
  <div class="flex-c m-t-3">
    <button class="btn m-r-2" @click="toHome">返回首页</button>
    <button class="btn" @click="back">后退一步</button>
  </div>
</div>
</template>

<script setup>
import { useRouter } from 'vue-router';
const router = useRouter()
const toHome = () => {
  router.replace('/')
}
const back = () => {
  router.back()
}

</script>

<style scoped lang="scss">
.page {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: cneter;
  box-sizing: border-box;
  padding-top: 50px;
  .tip {
    color: rgb(236, 43, 43);
    font-size: 40px;
    font-weight: 700;
    user-select: none;
    text-align: center;
    &:nth-child(1) {
      font-size: 60px;
    }
  }
  .btn {
    width: 10vw;
    height: 3vw;
    font-size: 20px;
    font-weight: 500;
    border-radius: 0.5vw;
    background-color: #28A9E4;
    border: none;
    color: #fff;
    letter-spacing: 3px;
    cursor: pointer;
    &:active,
    &:hover {
     background-color: #14a4e7;
    }
  }
}
</style>